package com.ruoyi.wetest.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 压测上报事务记录对象 wetest_stress_trans
 * 
 * @author ruoyi
 * @date 2024-04-30
 */
public class WetestStressTrans extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 记录rid */
    @Excel(name = "记录rid")
    private String testId;

    /** 机器实例id */
    @Excel(name = "机器实例id")
    private Integer instanceId;

    /** 事务名 */
    @Excel(name = "事务名")
    private String transName;

    /** 事务耗时，单位为ms */
    @Excel(name = "事务耗时，单位为ms")
    private Integer timeCost;

    /** 事务状态。其中（ 0：失败，1：成功，2：错误，3：超时） */
    @Excel(name = "事务状态。其中", readConverterExp = "0=：失败，1：成功，2：错误，3：超时")
    private Integer transResult;

    /** 事务时间戳，单位为s 实际使用时候带要传入具体时间戳 */
    @Excel(name = "事务时间戳，单位为s 实际使用时候带要传入具体时间戳")
    private Long timestamps;

    /** 记录时间 */
    @Excel(name = "记录时间")
    private Long cTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getTestId() {
        return testId;
    }

    public void setTestId(String testId) {
        this.testId = testId;
    }

    public void setInstanceId(Integer instanceId)
    {
        this.instanceId = instanceId;
    }

    public Integer getInstanceId() 
    {
        return instanceId;
    }
    public void setTransName(String transName) 
    {
        this.transName = transName;
    }

    public String getTransName() 
    {
        return transName;
    }
    public void setTimeCost(Integer timeCost) 
    {
        this.timeCost = timeCost;
    }

    public Integer getTimeCost() 
    {
        return timeCost;
    }
    public void setTransResult(Integer transResult) 
    {
        this.transResult = transResult;
    }

    public Integer getTransResult() 
    {
        return transResult;
    }
    public void setTimestamps(Long timestamps) 
    {
        this.timestamps = timestamps;
    }

    public Long getTimestamps() 
    {
        return timestamps;
    }
    public void setcTime(Long cTime) 
    {
        this.cTime = cTime;
    }

    public Long getcTime() 
    {
        return cTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testId", getTestId())
            .append("instanceId", getInstanceId())
            .append("transName", getTransName())
            .append("timeCost", getTimeCost())
            .append("transResult", getTransResult())
            .append("timestamps", getTimestamps())
            .append("cTime", getcTime())
            .toString();
    }
}
